package com.duqc.tag.controller;

import com.duqc.response.ResultMsg;
import com.duqc.tag.entity.Tag;
import com.duqc.tag.service.TagRuleService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

/**
 * @ClassName TagRuleController
 * @Description TagRuleController
 * @Author duqc
 * @Date 2023/2/8
 **/
@Slf4j
@RestController
@RequiredArgsConstructor
@RequestMapping("tag/rule")
public class TagRuleController {

    private final TagRuleService tagRuleService;

    /**
     * 解析标签数据
     *
     * @return ResultMsg
     */
    @GetMapping(value = "/data")
    public ResultMsg data() {
        return ResultMsg.success(this.tagRuleService.data());
    }

}
